Skip to content

fix: use correct MIME type for file uploads #410

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 23, 2025

Conversation

radu-mocanu
Copy link
Contributor

@radu-mocanu radu-mocanu commented Jun 22, 2025

  • pass Content-Type header to file upload to avoid corrupted items in storage buckets
  • make content_type parameter optional and try to detect it dynamically at runtime
  • mark ".xlsx", ".xls" file extensions as binary

Development Package

  • Add this package as a dependency in your pyproject.toml:
[project]
dependencies = [
  # Exact version:
  "uipath==2.0.70.dev1004100466",

  # Any version from PR
  "uipath>=2.0.70.dev1004100000,<2.0.70.dev1004110000"
]

[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true

[tool.uv.sources]
uipath = { index = "testpypi" }

@radu-mocanu radu-mocanu self-assigned this Jun 22, 2025
@radu-mocanu radu-mocanu added the build:dev Create a dev build from the pr label Jun 22, 2025
@radu-mocanu radu-mocanu force-pushed the fix/bucket-files-content-type branch 4 times, most recently from d2c3ff5 to e2c0447 Compare June 22, 2025 18:18
@radu-mocanu radu-mocanu force-pushed the fix/bucket-files-content-type branch from e2c0447 to b6ca8ec Compare June 22, 2025 18:26
@gheorghitahurmuz gheorghitahurmuz force-pushed the fix/bucket-files-content-type branch 2 times, most recently from ab378c0 to f5d6a17 Compare June 23, 2025 11:26
@radu-mocanu radu-mocanu merged commit 0569311 into main Jun 23, 2025
27 checks passed
@radu-mocanu radu-mocanu deleted the fix/bucket-files-content-type branch June 23, 2025 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build:dev Create a dev build from the pr
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants